Pro Java 9 Games Development by Wallace Jackson

Pro Java 9 Games Development by Wallace Jackson

Author:Wallace Jackson
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


Figure 9-14.Add .setFill() and .setFont() methods to your SplashScreen text

Open the createBoardGameNodes() method, and after your infoOverlay object instantiation, add a line of code and call the .setTranslate X() method with a value of 240 off of the infoOverlay object. Then add another line of code and call the .setTranslateY() method with a value of 420. This will position the TextFlow container underneath the ImageView object (currently a welcome message) so that your block of composited text will be at the bottom of the screen. The Java code for these statements should look like the following (and are shown highlighted in Figure 9-15):

infoOverlay.setTranslateX(240);

infoOverlay.setTranslateY(420);



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.